﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理工作平台</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content=""/>
<meta name="author" content=""/>

<!-- CSS -->
<link rel="shortcut icon" href="<%=request.getContextPath() %>/static/common/login/images/favicon.png" type="image/x-icon" />

<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/login/css/supersized.css"/>
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/login/css/login.css"/>
<link href="<%=request.getContextPath() %>/static/common/login/css/bootstrap.min.css" rel="stylesheet"/>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
	<script src="js/html5.js"></script>
<![endif]-->
<script src="<%=request.getContextPath() %>/static/common/login/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/login/js/jquery.form.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/login/js/tooltips.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/login/js/login.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/plugin/jquery.min.js"></script>
</head>

<body>
<div class="page-container">
	<div class="main_box">
		<div class="login_box">
			<div class="login_logo">
				<img src="<%=request.getContextPath() %>/static/common/login/images/logo.png" />
			</div>
		
			<div class="login_form">
			  <span id="errorInfo" style="color:red;">${errorInfo}</span>
				<form action="<%=request.getContextPath() %>/CommonServlet?command=login" id="login_form" method="post">
					<div class="form-group">
						<label for="j_username"  class="t">账　号：</label> 
						<!-- ${code} -->
						<%-- <c:out value="${code}" default="${cookie.code.value}" escapeXml="false"/>--%>
						<input id="code"  placeholder="请输入账号……"  value="<c:out value='${code}' default='${cookie.code.value}' escapeXml='false'/>"  name="code" type="text" class="form-control x319 in" 
						autocomplete="off" onfocus="clearInfo()"></input>
					</div>
					<div class="form-group">
						<label for="j_password" class="t">密　码：</label> 
						<input id="password"  placeholder="请输入密码……"  value="${cookie.password.value}" name="password" type="password" 
						class="password form-control x319 in"  onfocus="clearInfo()"></input>
					</div>
					<div class="form-group">
						<label  for="j_captcha" class="t">验证码：</label>
						 <input id="j_captcha"   placeholder="请输入验证码……"  name="j_captcha" type="text" class="form-control x164 in"  onfocus="clearInfo()" maxlength="6"></input>
						<img id="captcha_img" alt="点击更换" title="点击更换" src="<%=request.getContextPath() %>/kaptcha.jpg"  onclick="alter(this)" class="m"/>
						<script>
							function clearInfo(){
								document.getElementById("errorInfo").innerHTML="";
							}
							function alter(obj){
								obj.src='<%=request.getContextPath() %>/kaptcha.jpg?Date='+new Date().getTime();
							}
						</script>
					</div>
					<div class="form-group">
						<label class="t"></label>
						<label for="j_remember" class="m">
						
						<input id="j_remember" type="checkbox" name="rememberLogin" value="true" <c:if test="${cookie.rememberLogin.value=='true' }">checked="checked"</c:if>>&nbsp;记住登陆账号!</input>
						</label>
					</div>
					<div class="form-group space">
						<label class="t"></label>　　　
						<button type="submit"  id="submit_btn" 
						class="btn btn-primary btn-lg">&nbsp;登&nbsp;录&nbsp; </button>
						<input type="reset" value="&nbsp;重&nbsp;置&nbsp;" class="btn btn-default btn-lg"></input>
					</div>
				</form>
			</div>
		</div>
		<div class="bottom">Copyright &copy; 2016 - 2017 <a href="<%=request.getContextPath() %>/test.jsp">系统登陆</a></div>
	</div>
</div>

<!-- Javascript -->

<script src="<%=request.getContextPath() %>/static/common/login/js/supersized.3.2.7.min.js"></script>
<script src="<%=request.getContextPath() %>/static/common/login/js/supersized-init.js"></script>
<script src="<%=request.getContextPath() %>/static/common/login/js/scripts.js"></script>
<div style="text-align:center;">
</div>
</body>
</html>
